import type { PluginOption } from 'vite'
import { createHtmlPlugin } from 'vite-plugin-html'


export function configHtmlPlugin({ isBuild }: { isBuild: boolean }) {
    const htmlPlugin: PluginOption[] = [
        createHtmlPlugin({
            minify: isBuild,
        })
    ]

    return htmlPlugin
}